package com.jiaying.sync.beans;

import java.util.Date;

/**
 * 短信内容表
 * @author bill
 *
 */
public class SmsContentForm {
	private long idMg;  //标识列(mongodb) 新版茧米
	private long id;  //标识列
	private Date addtime; //添加时间
	private String content; //短信内容
	private int mGateway; //移动网关
	private int mobileCount;// 号码数量
	private int msgCount; // 内容数量，内容长度70字一条分隔
	private Date sendTime;// 发送时间
	private int source;  //来源  1接口用户  2网站用户 3软件用户
	private int status; // 状态 -1拒接 0未审  1已审   2已提交
	private String statusCode; // 状态码
	private String statusCodeDesc; // 状态码描述
	private int tGateway;// 电信网关
	private int eprId;  //企业id, 宽乐通信平台=0，企业短信平台〉0
	private String ucuid; //用户名
	private int uGateway;// 联通网关
	private int priority; //优先级 0-9
	private String md5Content;// 内容md5加密
	private int platform;//平台类型 0：嘉盈企业 1：汇讯企业 2：嘉盈宽乐
	private int ctxtype;//内容类型，0普通，1：验证码（保存在号码表）

	private String provinceOperator;// 省份+运营商 ，如广东移动，用于省网成本设置

	private int tempID; //模版ID
	private int contentType; //内容类型

	private int taskId;//任务id
	private int custTempId;//客户模板id
    private int timing;//0：及时短信 1：定时短信

	private int contentCount;//内容记录数

	private String label;//内容标签，0-未识别 -1 验证码类--2 行业--3 营销--4 非法
	private String md5;//md5，用于标签识别
	private int existsLabel =0;//是否存在标签记， 0：不存在标签记录 1：存在标签记录

	private int hfType;//混发类型，0是普通短信，1视频短信扣费（客户知道），2视频短信扣费（客户不知道），3混发转普通
	private long onlyId;//唯一ID（用于关联其他数据）
	private int msgLen;//短信字数 ,内容表无该字段，用户号码不入口获取内容长度
	private int msgBytes;//短信字节数 ,内容表无该字段
	private boolean toCheckPfoSameContent=false;//是否检查相同内容或者相同模板,非验证码，单个号码,超过多少条,把设置成ctxType=14(大多数是cmpp提交营销内容,需要限制状态更新速度)
	private boolean toCheckPfoSameTemplateId=false;//是否检查相同内容或者相同模板,非验证码，单个号码,超过多少条,把设置成ctxType=14(大多数是cmpp提交营销内容,需要限制状态更新速度)
	private String smsSign = "";//签名

	public int getMsgLen() {
		return msgLen;
	}

	public void setMsgLen(int msgLen) {
		this.msgLen = msgLen;
	}

	public int getExistsLabel() {
		return existsLabel;
	}

	public void setExistsLabel(int existsLabel) {
		this.existsLabel = existsLabel;
	}

	public String getMd5() {
		return md5;
	}

	public void setMd5(String md5) {
		this.md5 = md5;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public int getContentCount() {
		return contentCount;
	}

	public void setContentCount(int contentCount) {
		this.contentCount = contentCount;
	}

	public int getTiming() {
        return timing;
    }

    public void setTiming(int timing) {
        this.timing = timing;
    }
	public int getTaskId() {
		return taskId;
	}

	public void setTaskId(int taskId) {
		this.taskId = taskId;
	}

	public int getCustTempId() {
		return custTempId;
	}

	public void setCustTempId(int custTempId) {
		this.custTempId = custTempId;
	}

	public int getTempID() {
		return tempID;
	}

	public void setTempID(int tempID) {
		this.tempID = tempID;
	}

	public int getContentType() {
		return contentType;
	}

	public void setContentType(int contentType) {
		this.contentType = contentType;
	}

	public int getPlatform() {
		return platform;
	}

	public void setPlatform(int platform) {
		this.platform = platform;
	}

	public String getMd5Content()
	{
		return md5Content;
	}

	public void setMd5Content(String md5Content)
	{
		this.md5Content = md5Content;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public Date getAddtime() {
		return addtime;
	}

	public String getContent() {
		return content;
	}
	public long getId() {
		return id;
	}
	public int getmGateway() {
		return mGateway;
	}
	public int getMobileCount() {
		return mobileCount;
	}
	public int getMsgCount() {
		return msgCount;
	}
	public Date getSendTime() {
		return sendTime;
	}
	public int getSource() {
		return source;
	}
	public int getStatus() {
		return status;
	}
	public int gettGateway() {
		return tGateway;
	}
	public String getUcuid() {
		return ucuid;
	}
	public int getuGateway() {
		return uGateway;
	}
	public void setAddtime(Date addtime) {
		this.addtime = addtime;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public void setId(long id) {
		this.id = id;
	}
	public void setmGateway(int mGateway) {
		this.mGateway = mGateway;
	}
	public void setMobileCount(int mobileCount) {
		this.mobileCount = mobileCount;
	}
	public void setMsgCount(int msgCount) {
		this.msgCount = msgCount;
	}
	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}
	public void setSource(int source) {
		this.source = source;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public void settGateway(int tGateway) {
		this.tGateway = tGateway;
	}
	public void setUcuid(String ucuid) {
		this.ucuid = ucuid;
	}
	public void setuGateway(int uGateway) {
		this.uGateway = uGateway;
	}

	public int getEprId() {
		return eprId;
	}

	public void setEprId(int eprId) {
		this.eprId = eprId;
	}

	public String getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}

	public String getStatusCodeDesc() {
		return statusCodeDesc;
	}

	public void setStatusCodeDesc(String statusCodeDesc) {
		this.statusCodeDesc = statusCodeDesc;
	}

	public int getCtxtype() {
		return ctxtype;
	}

	public void setCtxtype(int ctxtype) {
		this.ctxtype = ctxtype;
	}

	public int getMsgBytes() {
		return msgBytes;
	}

	public void setMsgBytes(int msgBytes) {
		this.msgBytes = msgBytes;
	}

	public SmsContentForm cp() {
		SmsContentForm tempSmsContentForm = new SmsContentForm();

//		private Date addtime; //添加时间
//		private String content; //短信内容
//		private int id;  //标识列
//		private int mGateway; //移动网关
//		private int mobileCount;// 号码数量
//		private int msgCount; // 内容数量，内容长度70字一条分隔
//		private Date sendTime;// 发送时间
//		private int source;  //来源  1接口用户  2网站用户 3软件用户
//		private int status; // 状态 -1拒接 0未审  1已审   2已提交
//		private String statusCode; // 状态码
//		private String statusCodeDesc; // 状态码描述
//		private int tGateway;// 电信网关
//		private int eprid;  //企业id, 宽乐通信平台=0，企业短信平台〉0
//		private String ucuid; //用户名
//		private int uGateway;// 联通网关
//		private int priority; //优先级 0-9
//		private String md5Content;// 内容md5加密
		tempSmsContentForm.setAddtime(this.addtime);
		tempSmsContentForm.setContent(this.content);
		tempSmsContentForm.setmGateway(this.mGateway);
		tempSmsContentForm.setMsgCount(this.msgCount);
		tempSmsContentForm.setMsgLen(this.msgLen);
		tempSmsContentForm.setSendTime(this.sendTime);
		tempSmsContentForm.setSource(this.source);
		tempSmsContentForm.setStatus(this.status);
		tempSmsContentForm.setStatusCode(this.statusCode);
		tempSmsContentForm.setStatusCodeDesc(this.statusCodeDesc);
		tempSmsContentForm.settGateway(this.tGateway);
		tempSmsContentForm.setEprId(this.eprId);
		tempSmsContentForm.setUcuid(this.ucuid);
		tempSmsContentForm.setuGateway(this.uGateway);
		tempSmsContentForm.setPriority(this.priority);
		tempSmsContentForm.setMd5Content(this.md5Content);
		tempSmsContentForm.setCtxtype(this.ctxtype);
		tempSmsContentForm.setPlatform(this.platform);

		tempSmsContentForm.setTempID(this.tempID);
		tempSmsContentForm.setContentType(this.contentType);
		tempSmsContentForm.setTaskId(this.taskId);//新版本web界面传入

		tempSmsContentForm.setOnlyId(this.onlyId);
		tempSmsContentForm.setHfType(this.hfType);
		tempSmsContentForm.setToCheckPfoSameContent(this.toCheckPfoSameContent);
		tempSmsContentForm.setToCheckPfoSameTemplateId(this.toCheckPfoSameTemplateId);
		tempSmsContentForm.setTiming(this.timing);
		tempSmsContentForm.setMsgBytes(this.msgBytes);
		tempSmsContentForm.setSmsSign(this.smsSign);
		tempSmsContentForm.setCustTempId(this.custTempId);

		return tempSmsContentForm;
	}

	public String getProvinceOperator() {
		return provinceOperator;
	}

	public void setProvinceOperator(String provinceOperator) {
		this.provinceOperator = provinceOperator;
	}


	public int getHfType() {
		return hfType;
	}

	public void setHfType(int hfType) {
		this.hfType = hfType;
	}

	public long getOnlyId() {
		return onlyId;
	}

	public void setOnlyId(long onlyId) {
		this.onlyId = onlyId;
	}

	public boolean isToCheckPfoSameContent() {
		return toCheckPfoSameContent;
	}

	public void setToCheckPfoSameContent(boolean toCheckPfoSameContent) {
		this.toCheckPfoSameContent = toCheckPfoSameContent;
	}

    public boolean isToCheckPfoSameTemplateId() {
        return toCheckPfoSameTemplateId;
    }

    public void setToCheckPfoSameTemplateId(boolean toCheckPfoSameTemplateId) {
        this.toCheckPfoSameTemplateId = toCheckPfoSameTemplateId;
    }

	public String getSmsSign() {
		return smsSign;
	}


	public long getIdMg() {
		return idMg;
	}

	public void setIdMg(long idMg) {
		this.idMg = idMg;
	}

	public void setSmsSign(String smsSign) {
		this.smsSign = smsSign;
	}
}
